package cc.home.work.demo5;

@FunctionalInterface
public interface NumberToString {
    String convert(int num);
}

class Test{
    public static void main(String[] args) {
        NumberToString n =new NumberToString() {
            @Override
            public String convert(int num) {
                String s = Integer.toHexString(num);
                return s;
            }
        };
        n.convert(100);
    }
    public static  void decToHex(int num ,NumberToString nts){

    }
}